package com.itheima.service.impl;

import com.itheima.bean.User;
import com.itheima.mapper.UserMapper;
import com.itheima.service.UserService;
import com.itheima.utils.MybatisSqlSession;

public class UserServiceImpl implements UserService {
    @Override
    public User login(User user) {
        UserMapper mapper = (UserMapper) MybatisSqlSession.getMapper(UserMapper.class);
        User uu = mapper.login(user);
        return uu;
    }
}
